package com.yww.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yww.entity.Users;
import com.yww.entity.UsersParam;
import com.yww.mapper.UsersMapper;
import com.yww.service.UsersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户 实现类
 * 杨雯雯
 */

@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper,Users> implements UsersService{
    @Resource
    UsersMapper usersMapper;

    @Override
    public boolean updateByUserId(String loginName) {
        return usersMapper.updateByUserId(loginName);
    }

    @Override
    public Integer updateWrongNum(String loginName) {
        return usersMapper.updateWrongNum(loginName);
    }

    @Override
    public Integer updatePassWord(Users users) {
        return usersMapper.updatePassWord(users);
    }

    @Override
    public List<Users> getUserNameByLoginName(Users users) {
        return usersMapper.getUserNameByLoginName(users);
    }

    @Override
    public Integer userIn(Users users) {
        return usersMapper.userIn(users);
    }

    @Override
    public Integer userOut(Users users) {
        return usersMapper.userOut(users);
    }

    @Override
    public Users getQdStatic(Users users) {
        return usersMapper.getQdStatic(users);
    }

    @Override
    public List<Users> getCon(UsersParam usersParam) {
        return usersMapper.getCon(usersParam);
    }

    @Override
    public Integer updateWeight(Users users) {
        return usersMapper.updateWeight(users);
    }

    @Override
    public Integer updateOpenButton(List<Integer> ids, Integer num) {
        return usersMapper.updateOpenButton(ids,num);
    }

    @Override
    public List<Users> getUserContainsRole(Integer userId) {
        return usersMapper.getUserContainsRole(userId);
    }

    @Override
    public List<String> getNameByManager(Integer userId) {
        return usersMapper.getNameByManager(userId);
    }

    @Override
    public Integer getLastTime(String lastLoginTime,String loginName) {
        return usersMapper.getLastTime(lastLoginTime,loginName);
    }

    @Override
    public Integer updateStatus() {
        return usersMapper.updateStatus();
    }

    @Override
    public Integer updateStatus2() {
        return usersMapper.updateStatus2();
    }

    @Override
    public Integer updateTime() {
        return usersMapper.updateTime();
    }

    @Override
    public Integer emptyTime(Integer userId) {
        return usersMapper.emptyTime(userId);
    }

    @Override
    public Integer delBatchUserId(String[] ids) {
        return usersMapper.delBatchUserId(ids);
    }


}
